package com.wwlwxg.redis;

import redis.clients.jedis.Jedis;

/**
 * 从列表中弹出数据
 */
public class ListPop {

	static Jedis jedis = new Jedis("localhost", 6379);

	public static void main(String[] args) throws Exception {
		try {
			String list = "MyList";
			String message = jedis.rpop(list);
			System.out.println(message);
		} finally {
			jedis.close();
		}
	}
}
